/*
 * Copyright 2005-2013 evolution.com. All rights reserved.
 */
package com.evolution.warlock.service.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.evolution.warlock.Order;
import com.evolution.warlock.Order.Direction;
import com.evolution.warlock.dao.ReligionDao;
import com.evolution.warlock.entity.Religion;
import com.evolution.warlock.service.ReligionService;

/**
 * Service - 宗教
 * 
 * @author EVOLUTION Team
 * @version 1.0
 */
@Service("religionServiceImpl")
public class ReligionServiceImpl extends BaseServiceImpl<Religion, Long> implements ReligionService {

 @Resource(name = "religionDaoImpl")
 private ReligionDao religionDao;
 
 @Resource(name = "religionDaoImpl")
 public void setReligionDao(ReligionDao religionDao){
	 super.setBaseDao(religionDao);
 }

 @Transactional(readOnly = true)
 public List<Religion> findListOrder(String periodCd) {
   List<Order> orders = new ArrayList<Order>();
   orders.add(new Order(periodCd, Direction.asc));
   return religionDao.findList(null, null, null, orders);
 }
 
}
